package com.nicole.reqresp;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @author xiaoying
 */
@Component
@ConfigurationProperties(prefix = "spring.nicole.req.resp")
public class ReqRespProperties {
    /**
     * 开关
     */
    private boolean enabled = true;
    /**
     * 反参是否打印
     */
    private boolean respEnable = true;
    /**
     * 入参是否打印
     */
    private boolean reqEnable = true;
    /**
     * 反参截取长度
     */
    private Integer respCutLength;
    /**
     * 入参截取长度
     */
    private Integer reqCutLength;
    /**
     * 不包含的字段打印
     */
    private List<String> exceptFiled;

    public boolean isEnable() {
        return enabled;
    }

    public void setEnable(boolean enable) {
        this.enabled = enable;
    }

    public List<String> getExceptFiled() {
        return exceptFiled;
    }

    public void setExceptFiled(List<String> exceptFiled) {
        this.exceptFiled = exceptFiled;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isRespEnable() {
        return respEnable;
    }

    public void setRespEnable(boolean respEnable) {
        this.respEnable = respEnable;
    }

    public boolean isReqEnable() {
        return reqEnable;
    }

    public void setReqEnable(boolean reqEnable) {
        this.reqEnable = reqEnable;
    }

    public Integer getRespCutLength() {
        return respCutLength;
    }

    public void setRespCutLength(Integer respCutLength) {
        this.respCutLength = respCutLength;
    }

    public Integer getReqCutLength() {
        return reqCutLength;
    }

    public void setReqCutLength(Integer reqCutLength) {
        this.reqCutLength = reqCutLength;
    }
}
